﻿layui.define(['layer', 'element'], function (exports) {
    var element = layui.element();
    element.on('nav(demo)', function (elem) {
        var href = elem.find('a').data('url');
        layer.load(2);
        app.animateHide(function () {
            location.href = href;
        });
    });
    exports('shared/layout', {});
});